//
//  TTShopCartCommodityViewCell.h
//  TaoTuo
//
//  Created by admin on 2019/9/2.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TTShopCartCommodityViewCell;
@class TTShopCartSubDetailModel;

@protocol TTShopCartCommodityViewCellDelegate <NSObject>
@optional
// 点击了选中按钮
- (void)clickLeftButtonInCommodityViewCell:(TTShopCartCommodityViewCell *_Nullable)cell;
// 触发长按手势
- (void)longGestureActionInCommodityViewCell:(TTShopCartCommodityViewCell *_Nullable)cell deleteModel:(TTShopCartSubDetailModel *_Nullable)deleteModel;

@end

NS_ASSUME_NONNULL_BEGIN

@interface TTShopCartCommodityViewCell : UITableViewCell

@property (nonatomic, assign) id<TTShopCartCommodityViewCellDelegate> delegate;

// 是否带阴影，是否可选
- (void)setDetailModel:(TTShopCartSubDetailModel *)detailModel hasShadow:(BOOL)hasShadow canSelect:(BOOL)canSelect;

// 是否带阴影，是否可选，来自提交订单页面吗
- (void)setDetailModel:(TTShopCartSubDetailModel *)detailModel hasShadow:(BOOL)hasShadow canSelect:(BOOL)canSelect isFromCommitOrder:(BOOL)isFromCommitOrder;

@end

NS_ASSUME_NONNULL_END
